@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/activity/activity_add.js"]}){
<form id="activityForm" lay-filter="activityForm" class="layui-form model-form">
    <input name="id" type="hidden"/>
        <div class="layui-col-l2 layui-col-md12">
            <#pic boxid="picBox1" name="封面图片"  tip="请上传小于500kb，宽：690px,高：518px 的图片"  hiddenInput="img" uploadButton="uploadPic" />
        </div>
    <div class="layui-col-lg6 layui-col-md6" >
        <div class="layui-form-item">
            <label class="layui-form-label">活动名称<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="title" name="title" placeholder="请输入活动名称" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <!--<div class="layui-form-item" >
            <label class="layui-form-label">是否需要申请条件<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input type="checkbox" id="swParticipationWay" name="swParticipationWay" lay-filter="swParticipationWay" value="1" lay-skin="switch"  lay-text="开|关"  />
            </div>
        </div>
        <div class="layui-form-item" id="applyBox" style="display: none;">
            <label class="layui-form-label">申请方式<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="applyWay" name="applyWay" placeholder="请输入申请方式" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>-->
        <div class="layui-form-item" >
            <label class="layui-form-label">奖励方式<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="rewardWay" name="rewardWay" placeholder="请输入奖励方式" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">奖品数量</label>
            <div class="layui-input-block">
                <input id="amount" name="amount" placeholder="请输入奖品数量" type="number" min="1" max="99999" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标识<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <select name=mark"  id="mark"
                        @if(!shiro.isAdmin()){
                        disabled
                        @}
                >
                    <option value="">无</option>
                    <option value="1">置顶</option>
                </select>
            </div>
        </div>
        <!--<div class="layui-form-item">
            <label class="layui-form-label">状态<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <select id="status" name="status"
                        @if(!shiro.isAdmin()){
                        disabled
                        @}
                >
                    <option value="">全部</option>
                    <option value="1">待发布</option>
                    <option value="2">投稿中</option>
                    <option value="3">截止投稿</option>
                    <option value="4">评选中</option>
                    <option value="5">评选结束</option>
                    <option value="6">活动结束</option>
                </select>
            </div>
        </div>
-->
        <!--<div class="layui-form-item">
            <label class="layui-form-label">奖励名单的开关<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="swRewardList" name="swRewardList" placeholder="请输入奖励名单的开关" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">投稿名单的开关<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="swReport" name="swRewardList" placeholder="请输入奖励名单的开关" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>-->
    </div>
    <div class="layui-col-lg6 layui-col-md6">

        <div class="layui-form-item">
            <label class="layui-form-label">开始投稿时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="beginSubmissionTime" name="beginSubmissionTime" placeholder="请输入开始投稿时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束投稿时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="endSubmissionTime" name="endSubmissionTime" placeholder="请输入结束投稿时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始评选时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="beginApplyTime" name="beginApplyTime" placeholder="请输入开始报名时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束评选时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="endApplyTime" name="endApplyTime" placeholder="请输入结束报名时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动结束时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="activityEndTime" name="activityEndTime" placeholder="请输入活动结束时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <blockquote  style="text-align: center">
            活动详情
        </blockquote>
        <div >
            <div id="description_toolbar" class="toolbar">
            </div>
            <div id="description_text" class="text" style="height: 400px;border: 1px solid seagreen">
            </div>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}